const http = uni.$u.http
import qs from 'qs'
import { BASE_URL } from '@/config/config.js';

//label 标签
export const getLabels =  (params) => http.get('/type/labels', params)

//轮播
export const getVodCarousel = (params) => http.get('/vod/carousel'+params)

//列表
export const getVodPage = (params) => http.get('/vod/page'+params)

//详情
export const getVodDetail = (params) => http.get('/vod/detail'+ params)

//猜你喜欢
export const getVodGuess = (params) => http.get('/vod/guess'+params)

//相关推荐
export const getVodRecommend = (params) => http.get('/vod/recommend'+params)

//个标签视频6个
export const getLableVodList = (params) => http.get('/vod/labelVodList'+params)

//分類
export const getTypesByPid = (params) => http.get('/type/types'+params)

//所有分類
export const getAllCates = () => http.get('/type/cates')


//搜索
export const getVodSearch = (params) => http.get('/vod/search'+ params)

//反馈类型
export const getFeedBackType = () => http.get('/advise/type')

//提交反馈
export const submitFeedBack = (data) => http.post('/advise/create',data)


//图片上次
export const uploadImages = (data) => http.post('/file/upload',data)


 //--------------用户登录相关接口----------------getCode, login, getUserInfo, appPush 
 export const getLoginRsaKey = () => http.get('/auth/getLoginRsaKey')
 
 export const registerByName = (data) => http.post('/auth/regUserByName',data)
 
 export const login = (data) => http.post('/auth/login',data)
 
 
 export const updateUser = (data) => http.post('/user/updateUser',data)
 
 //首页未读
 export const getUnreadCount = () => http.get('/chat/getUnReadCount')
 
 //更新未读
 export const updateUnread = (data) => http.get('/chat/updateUnread'+data)
 
 
 export const findChatUserMagList = (data) => http.get('/chat/findChatUserMagList'+data)
 
 
 
 
 
 
  
 

 
 export const getUserListByUser = (userId) => http.get('/chat/getUserListByUser'+userId)
 
 
 
 

 
 